<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/purchaseinfo/purchase_application_not_mx/q_purchase_application_not_mx.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/purchaseinfo/purchase_application_not_mx/q_purchase_application_not_mx.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '未采购商品明细',
                name: 'purchase_application_not_mx/q_purchase_application_not_mx',
                url: "/q_purchase_application_not_mx/",
                sortName: "采购申请单号"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"采购申请单号":"","申请人":"","编码":"","名称":""});
            const searchFormOptions = ref([[{"title":"采购单","field":"采购申请单号","type":"like"},{"title":"申请人","field":"申请人","type":"like"},{"title":"编码","field":"编码","type":"like"},{"title":"名称","field":"名称","type":"like"}]]);
            const columns = ref([{field:'ID',title:'ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'采购申请单ID',title:'采购申请单ID',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'采购申请单号',title:'采购单',type:'string',width:180,align:'left',sort:true},
                       {field:'申请人',title:'申请人',type:'string',width:120,align:'left'},
                       {field:'编码',title:'编码',type:'string',width:110,align:'left'},
                       {field:'名称',title:'名称',type:'string',width:220,align:'left'},
                       {field:'规格',title:'规格',type:'string',width:110,align:'left'},
                       {field:'税率',title:'税率',type:'decimal',bind:{ key:'税率',data:[]},width:110,align:'left'},
                       {field:'采购数量',title:'采购数量',type:'float',width:110,align:'left'},
                       {field:'审核状态',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'采购状态',title:'采购状态',type:'int',bind:{ key:'采购状态',data:[]},width:110,align:'left'},
                       {field:'审核时间',title:'审核时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'备注',title:'备注',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
